// var mongoose=require('mongoose');
// var mongoosePaginate=require('mongoose-paginate');
// var NewsSchema=new mongoose.Schema({
//     title:String,
//     content:String,
//     type:String
//     // mail:String,
//     // city:String,
//     // date:{type:Date,default:Date.now},
//     // gender:Number,
//     // interest:[],
//     // desc:String
// });
// NewsSchema.plugin(mongoosePaginate);
// module.exports=mongoose.model('News',NewsSchema);
var mongoose = require('mongoose'),
    materializedPlugin = require('mongoose-materialized'),
    Schema = mongoose.Schema;

var CatSchema = new Schema({
    type:Number,
  text: {type: String},
  content:String
});


CatSchema.plugin(materializedPlugin);
module.exports=mongoose.model('News', CatSchema); // Category